-
-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Drop num_actions
from DiscreteDP
#207
Conversation
Codecov Report
@@ Coverage Diff @@
## master #207 +/- ##
==========================================
+ Coverage 90.59% 90.76% +0.17%
==========================================
Files 24 25 +1
Lines 1723 1744 +21
==========================================
+ Hits 1561 1583 +22
+ Misses 162 161 -1
Continue to review full report at Codecov.
|
Thanks for working to close this issue @a-parida12 I agree with @sglyon -- I like the explicitness of |
@sglyon I don't fully understand which particular function to be dropped then. |
Sorry for not being clear on this one. You did delete the proper function, but in a few instances you also changed the name of some variables (in the DiscreteDP constructor as well as a few docstrings) away from num_actions to the single letter n. We should keep the descriptive variable names, but still delete the function as you did. I think that we want to end up with a 1-line change relative to the current master branch that just removes the function definition. We should also check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @a-parida12 for making the change. There were a couple minor formatting issues in the docstrings that we should address.
After that we can merge!
src/markov/ddp.jl
Outdated
@@ -577,7 +577,7 @@ end | |||
|
|||
""" | |||
Return the `Vector` `max_a vals(s, a)`, where `vals` is represented as a | |||
`AbstractMatrix` of size `(num_states, num_actions)`. | |||
`AbstractMatrix` of size `(num_states, num_actions). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think here we need a closing backtick character after `num_actions)
src/markov/ddp.jl
Outdated
@@ -589,7 +589,7 @@ s_wise_max!(vals::AbstractMatrix, out::AbstractVector) = (println("calling this | |||
|
|||
""" | |||
Populate `out` with `max_a vals(s, a)`, where `vals` is represented as a | |||
`AbstractMatrix` of size `(num_states, num_actions)`. | |||
`AbstractMatrix` of size `(num_states, num_actions). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment about backtick here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, my bad. I will improve the formatting.
Thank you |
solves #103